﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Windows.Forms;


namespace TICsiraap
{
    public partial class RecuperarClave : System.Web.UI.Page
    {
        Registro.ControladorRecuperarClave ctlRecuClave = new Registro.ControladorRecuperarClave();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAceptar_Click(object sender, EventArgs e)
        {
            if (ctlRecuClave.leerEmail(txtNumEmp.Text))
                ctlRecuClave.SendMail();
        }

        protected void btnCancelar_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/login.aspx");
        }
    }
}